package python

import (
	"context"
	"gitee.com/kmyss/gf-ex/yslog"
	"gitee.com/kmyss/ys-cli/internal/service"
	"github.com/gogf/gf/v2/os/glog"
)

func init() {
	service.RegisterPython(&sPython{})
}

type sPython struct {
	l *glog.Logger // 日志
}

func (s *sPython) log() *glog.Logger {
	if s.l == nil {
		s.l = yslog.Log("logic.python")
	}
	return s.l
}
func (s *sPython) Setup(ctx context.Context) error {
	return s.initVenv(ctx)
}
